object Form1: TForm1
  Left = 239
  Top = 196
  Width = 979
  Height = 563
  Caption = 'Form1'
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'MS Sans Serif'
  Font.Style = []
  OldCreateOrder = False
  OnCreate = FormCreate
  PixelsPerInch = 96
  TextHeight = 13
  object DBGrid1: TDBGrid
    Left = 288
    Top = 200
    Width = 320
    Height = 120
    DataSource = DataSource1
    TabOrder = 0
    TitleFont.Charset = DEFAULT_CHARSET
    TitleFont.Color = clWindowText
    TitleFont.Height = -11
    TitleFont.Name = 'MS Sans Serif'
    TitleFont.Style = []
  end
  object Button1: TButton
    Left = 288
    Top = 136
    Width = 75
    Height = 25
    Caption = 'Button1'
    TabOrder = 1
    OnClick = Button1Click
  end
  object adqDetailLock: TADOQuery
    ConnectionString = 
      'Provider=SQLOLEDB.1;Password=sql;Persist Security Info=True;User' +
      ' ID=sa;Initial Catalog=st_his_mz;Data Source=192.168.1.216\SQL20' +
      '05'
    CursorType = ctStatic
    Parameters = <
      item
        Name = 'p_id'
        DataType = ftString
        Size = 1
        Value = '1'
      end
      item
        Name = 'times'
        DataType = ftString
        Size = 1
        Value = '0'
      end
      item
        Name = 'prescription_type'
        DataType = ftString
        Size = 1
        Value = '1'
      end
      item
        Name = 'account_sn'
        DataType = ftString
        Size = 1
        Value = '0'
      end
      item
        Name = 'prescription_sn'
        DataType = ftString
        Size = 1
        Value = '0'
      end>
    SQL.Strings = (
      'select * from mz_detail_lock(nolock)'
      'where p_id = :p_id and'
      '           times = :times and'
      '           prescription_type = :prescription_type and'
      '           account_sn = :account_sn and'
      '           prescription_sn = :prescription_sn')
    Left = 56
    Top = 40
  end
  object dspDetailLock: TDataSetProvider
    DataSet = adqDetailLock
    Left = 112
    Top = 40
  end
  object cdsDetailLock: TClientDataSet
    Active = True
    Aggregates = <>
    Params = <
      item
        DataType = ftString
        Name = 'p_id'
        ParamType = ptInput
        Value = '1'
      end
      item
        DataType = ftInteger
        Name = 'times'
        ParamType = ptInput
        Value = '0'
      end
      item
        DataType = ftString
        Name = 'prescription_type'
        ParamType = ptInput
        Value = '1'
      end
      item
        DataType = ftInteger
        Name = 'account_sn'
        ParamType = ptInput
        Value = '0'
      end
      item
        DataType = ftSmallint
        Name = 'prescription_sn'
        ParamType = ptInput
        Value = '0'
      end>
    ProviderName = 'dspDetailLock'
    Left = 168
    Top = 40
  end
  object DataSource1: TDataSource
    DataSet = cdsDetailLock
    Left = 216
    Top = 40
  end
end
